<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/admin.css" />
<link rel="stylesheet" type="text/css" href="style/global.css" />
<script language="javascript" type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
<title>决策管理</title>
</head>

<body>
	<div id="wrap">
    	<div id="public_head"></div>
        <div class="m_search">
          <form action='' method='post'>
        	时间范围 <input class="Wdate" value="<?php echo $bt;?>" name='bt' type="text" onClick="WdatePicker()"> 
			> <input class="Wdate" type="text" value="<?php echo $et;?>" name='et' onClick="WdatePicker()"> 
			回访人<input class="qi_text" value="<?php echo $name;?>" type="text" name="name">
			客户手机 <input class="qi_text" value="<?php echo $phone;?>" type="text" name="phone"> 
			<input class="btn_search" name="sub_msg" type="submit" value="" />
		  </form>
		</div>
        <div class="m_content">
        	<table class="qi_table" width="0" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<th>回访人</th>
		<th>客户手机</th>
		<th>发送时间</th>
		<th width="55%">发送内容</th>
		<th>操作</th>
	</tr>
	<?php 
	if(is_array($allmsg) && count($allmsg)>0){
		foreach ($allmsg as $v){
?>
	<tr>
		<td><?php echo str_replace($name,'<font color=red><b>'.$name.'</b></font>&nbsp;',$v['OPER_USER'])?></td>
		<td><?php echo str_replace($phone,'<font color=red><b>'.$phone.'</b></font>&nbsp;',$v['MOBILE'])?></td>
		<td><?php echo $v['SEND_TIME']?></td>
		<td><?php echo ATools::msubstr($v['CONTENT'],0,40)?></td>
		<td><a href="/index.php?c=recordmsg&a=msg_watch&id=<?php echo $v['ID']?>" class='lookcord'>查看详细</a></td>
	</tr>
<?php 
		}
	}else{
?>              
              <tr height="40"><td style="text-align:center;color:green;" colspan='10'>没有您搜索的结果</td></tr>
<?php }?>      
 				<tr><td colspan='10'>
					<?php 
						$url = '/index.php?c='.$_REQUEST['c'].'&a='.$_REQUEST['a'].'&p=_num_&name='.urlencode($name).'&phone='.$phone.'&bt='.$bt.'&et='.$et.'&way='.$way;
						echo JYTools::pager($url,$tolNum,$page,$pagesize);
					?>
			  </td></tr>       
            </table>
        </div>
    </div>
</body>
</html>
<script src="/js/xheditor/jquery/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="/js/boot.js"></script>
<script src="/js/tip.js"></script>
<script src="/js/add_public_head.js" type="text/javascript"></script>
<script type="text/javascript">
$('.lookcord').click(function(){
	var url = $(this).attr('href');
	window.open(url,'newwindow','height=400,width=500,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')
	return false;
})
</script>